const moment = require('moment');

module.exports = function (app) {
  // 监听请求
  app.get(process.env.VUE_APP_BASE_API_CONTEXT + '/app/info', function (req, res) {
    res.json({
      code: 20000,
      message: 'success',
      source: 'test',
      data: {
        appName: '我的Vue2-App',
        appVersion: 'v1.0.0',
        theme: 'THEME',
        time: moment().format()
      }
    });
  });
}
